package com.bbzn.device.client.dataobject;

import com.bbzn.device.client.vo.req.MongoBaseInfo;
import com.bbzn.device.client.aspect.JSONDateSerial;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Getter
@Setter
@ToString
@NoArgsConstructor
@Document(collection = "tbl_mess_his")
public class MessHis extends MongoBaseInfo implements Serializable {
    private static final long serialVersionUID = -1731997114514871247L;

    /**
     * 消息标识
     */
    private String messId;

    /**
     * 租户id
     */
    private Long userId;

    /**
     * 卡号
     */
    private String imei;

    /**
     * 消息内容
     */
    private String message;
    /**
     * 创建时间
     */
    @JsonSerialize(using= JSONDateSerial.class)
    private Long createTime;

    /**
     * 更新时间
     */
    @JsonSerialize(using= JSONDateSerial.class)
    private Long updateTime;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 修改人
     */
    private String updatedBy;
}